package com.zh.device.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zh.device.dao.HardwareDao;
import com.zh.device.domain.HardwareDO;
import com.zh.device.service.HardwareService;



@Service
public class HardwareServiceImpl implements HardwareService {
	@Autowired
	private HardwareDao hardwareDao;
	
	@Override
	public HardwareDO get(Integer id){
		return hardwareDao.get(id);
	}
	
	@Override
	public List<HardwareDO> list(Map<String, Object> map){
		return hardwareDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return hardwareDao.count(map);
	}
	
	@Override
	public int save(HardwareDO hardware){
		return hardwareDao.save(hardware);
	}
	
	@Override
	public int update(HardwareDO hardware){
		return hardwareDao.update(hardware);
	}
	
	@Override
	public int remove(Integer id){
		return hardwareDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return hardwareDao.batchRemove(ids);
	}
	
}
